<template>
  <div style="width: 100%;height: 100%;">
    <component ref="headerChild" style="width: 100%;height: 100%;" :pageId="pageId" :is="formData.path" ></component>
  </div>
</template>
<script>
import api from '@/api/system/webPage.js'
export default {
  components: {},
  props: [],
  data() {
    return {
		pageId:null,
      formData: {
       
      },
      rules: {
       
      },
    }
  },
  created() {
	  this.submitForm()
  },
  methods: {
    submitForm() {
		var data={
			id:this.$route.params.pageId
		}
        api.ById(data).then(res=>{
			this.formData=res.data
			this.formData.path=require(`../../views/association/page${res.data.id}.vue`).default
			this.pageId = res.data.id
		})
    }
  }
}

</script>
<style>
	body{
	       margin:0;
	       padding:0;
		   
	     }
</style>
